package com.example.brazil_project.service;

import com.example.brazil_project.parameter.Parameter;
import com.example.brazil_project.util.HttpUtil;
import com.example.brazil_project.util.SystemMsgUtil;
import com.example.brazil_project.util.ThreadUtil;
import com.example.brazil_project.util.TimerUtil;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

public class MsgService extends Service {

	      
	    @Override  
	    public IBinder onBind(Intent intent) {  
	
	        return null;  
	    }  
	      
	    @Override  
	    public void onCreate() {  
	   
	        super.onCreate();  
	    }  
	      
	    @Override  
	    public void onStart(Intent intent, int startId) { 
	    	
//	    	 ThreadUtil t =new ThreadUtil("getSystemInform",Parameter.getServerPath()+"APP/msg/getSystemInform.nut");
//			 Thread th = new Thread(t);
//			 th.start();
	 
//			 SystemMsgUtil t =SystemMsgUtil.getSystemMsgThread();
//			 System.out.println(t.getState()); 
//			 if(t.getState().toString().equals("NEW")){
//				 t.start();
//			 }
	    	TimerUtil.sysTimer();
	    	
	    	
	        super.onStart(intent, startId);  
	    }  
	      
	    @Override  
	    public int onStartCommand(Intent intent, int flags, int startId) {  
	     
	        return super.onStartCommand(intent, flags, startId);  
	    }  

}
